package com.chzc.fm.duotin.ui.more;

import android.app.Activity;
import android.provider.ContactsContract;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.chzc.fm.duotin.R;
import com.nostra13.universalimageloader.utils.L;

public class Downloadactivity extends Activity {
    private ImageView imageView1;
    private LinearLayout line1;
    private boolean check=true;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_download_activity);
       imageView1=(ImageView)findViewById(R.id.image2);
      //  imageView1.setOnClickListener(new MyOnclickListen());
        line1=(LinearLayout)findViewById(R.id.line1);
        line1.setOnClickListener(new MyOnclickListen());
    }
    class MyOnclickListen implements View.OnClickListener{

        @Override
        public void onClick(View view) {
            if(check==true)
            {
                imageView1.setImageResource(R.drawable.ic_option_unseleted);
                check=false;
            }
            else if(check==false){
                imageView1.setImageResource(R.drawable.ic_option_seleted);
                check=true;
            }
        }
    }
}
